﻿
namespace KingerRobot.MexicoSailunWMS.SpiService;
internal interface IRcsEquipBuilding
{
    /// <summary>
    /// 获取设备(Mes)是否宕机
    /// </summary>
    /// <returns></returns>
    int GetEquipCrashStatus();

    /// <summary>
    /// 获取所有成型机
    /// </summary>
    /// <returns></returns>
    List<PORcsEquipBuilding> GetAllEquipBuildings();

    ///// <summary>
    ///// 通过Id修改成型机启用状态
    ///// </summary>
    ///// <param name="Id"></param>
    ///// <returns></returns>
    //int UpdateEquipEnableById(long Id);

    /// <summary>
    /// 修改成型机宕机状态 取消宕机时不开启设备
    /// </summary>
    /// <param name="syncChange">设备启用状态是否同步变化</param>
    /// <returns></returns>
    int UpdateCrashStatus(bool syncChange);

    /// <summary>
    /// 修改宕机状态
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    int UpdateEquipCrashStatusById(long id);



}

